package org.jeecg.modules.order.service.impl;

import org.jeecg.modules.order.entity.BProgrammerBillInfo;
import org.jeecg.modules.order.mapper.BProgrammerBillInfoMapper;
import org.jeecg.modules.order.service.IBProgrammerBillInfoService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;

/**
 * @Description: 程序员结算信息
 * @Author: jeecg-boot
 * @Date:   2023-09-01
 * @Version: V1.0
 */
@Service
public class BProgrammerBillInfoServiceImpl extends ServiceImpl<BProgrammerBillInfoMapper, BProgrammerBillInfo> implements IBProgrammerBillInfoService {

    @Override
    public IPage<BProgrammerBillInfo> queryListByOrderId(String orderId, Integer pageNo, Integer pageSize) {
        Page<BProgrammerBillInfo> page = new Page<>(pageNo, pageSize);
        QueryWrapper<BProgrammerBillInfo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq("order_id", orderId);
        queryWrapper.orderByDesc("bill_date");
        return this.page(page, queryWrapper);
    }
} 